<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="ZUI，一个简单吸引人的前端框架。">
  <meta name="author" content="Zentao">

  <title>ZUI - 开源HTML5跨屏框架</title>

  <link href="../css/zui.min.css" rel="stylesheet">
  <link href="../css/example.css" rel="stylesheet">

  <script src="../../assets/jquery.js"></script>
  <script src="../../dist/js/zui.min.js"></script>



  <script>
  $(function ()
  {
      $('.nav li:not(.disabled)').click(function() {
          $(this).closest('.nav').find('li.active').removeClass('active');
          $(this).addClass('active');
      });
  });
  </script>

  <script src="../assets/js/example.js"></script>

  <style>
  .segment .nav {margin-bottom: 20px;}
  </style>
</head>
<body>
  <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">ZUI</a>
    </div>
    <div class="collapse navbar-collapse" id="navbar">
      <ul class="nav navbar-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span id="navbarCurrent">examples</span> <b class="caret"></b></a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="alerts.html">alerts</a></li>
            <li><a href="article.html">article</a></li>
            <li><a href="breadcrumb.html">breadcrumb</a></li>
            <li><a href="button-groups.html">button-groups</a></li>
            <li><a href="buttons.html">buttons</a></li>
            <li><a href="cards.html">cards</a></li>
            <li><a href="carousel.html">carousel</a></li>
            <li><a href="chosen.html">chosen</a></li>
            <li><a href="collapse.html">collapse</a></li>
            <li><a href="colorset.html">colorset</a></li>
            <li><a href="comment.html">comment</a></li>
            <li><a href="dropdowns.html">dropdowns</a></li>
            <li><a href="forms.html">forms</a></li>
            <li><a href="grid.html">grid</a></li>
            <li><a href="icons.html">icons</a></li>
            <li><a href="input-groups.html">input-groups</a></li>
            <li><a href="kindeditor.html">kindeditor</a></li>
            <li><a href="labels.html">labels</a></li>
            <li><a href="lightbox.html">Lightbox</a></li>
            <li><a href="list-group.html">list-group</a></li>
            <li><a href="list.html">list</a></li>
            <li><a href="modals.html">modals</a></li>
            <li><a href="navbars.html">navbars</a></li>
            <li><a href="navs.html">navs</a></li>
            <li><a href="pager.html">pager</a></li>
            <li><a href="panels.html">panels</a></li>
            <li><a href="popovers.html">popovers</a></li>
            <li><a href="progress.html">progress</a></li>
            <li><a href="tables.html">tables</a></li>
            <li><a href="tabs.html">tabs</a></li>
            <li><a href="textbox.html">textbox</a></li>
            <li><a href="tooltip.html">tooltip</a></li>
            <li><a href="type.html">type</a></li>
          </ul>
        </li>
        <li id="navbarNext"><a href="###">NEXT <i class="icon-angle-right icon-large"></i></a></li>
      </ul>
    </div>
  </nav>
  <article>
    <section class="page-section">
      <h1 class="header-dividing">Navbars</h1>

      <h2>类型</h2>

      <h3>主要导航</h3>
      <p><code>.nav-primary</code></p>
      <div spellcheck="false" class="segment">
        <ul class="nav nav-primary">
          <li class="active"><a href="###"><i class="icon-home"></i> Home</a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
      </div>

      <h3>次要导航</h3>
      <p>通常与主导航一起使用</p>
      <p><code>.nav-secondary</code></p>
      <div spellcheck="false" class="segment">
        <ul class="nav nav-secondary">
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
      </div>

      <h3>复合导航</h3>
      <p>复合导航包含一个主要导航和一个次要导航</p>


      <h3>标签页导航</h3>
      <p><code>.nav-tabs</code></p>
      <div spellcheck="false" class="segment">
        <ul class="nav nav-tabs">
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
      </div>

      <h3>圆点导航</h3>
      <p><code>.nav-pills</code></p>
      <div spellcheck="false" class="segment">
        <ul class="nav nav-pills">
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
      </div>

      <h2>状态</h2>
      <h3>禁用的导航链接</h3>
      <p>在禁用的项目上添加<code>.disabled</code></p>
      <div spellcheck="false" class="segment">
        <ul class="nav nav-tabs">
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li class="disabled"><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-pills">
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li class="disabled"><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-secondary">
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li class="disabled"><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
      </div>

      <h2>参数</h2>
      <h3>垂直排列</h3>
      <p><code>.nav-stacked</code></p>
      <div spellcheck="false" class="segment">
        <ul class="nav nav-primary nav-stacked">
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-secondary nav-stacked">
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-stacked nav-pills">
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
      </div>

      <h3>自适应宽度</h3>
      <p>自适应宽度不能与垂直排列同时使用</p>
      <p><code>.nav-justified</code></p>
      <div spellcheck="false" class="segment">
        <ul class="nav nav-primary nav-justified">
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-justified nav-tabs">
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-secondary nav-justified">
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-justified nav-pills">
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
      </div>

      <h3>带标题的导航</h3>
      <div spellcheck="false" class="segment">
        <ul class="nav nav-tabs">
          <li class="nav-heading">这是标题</li>
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li class="disabled"><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-pills">
          <li class="nav-heading">这是标题</li>
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li class="disabled"><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-secondary">
          <li class="nav-heading">This is heading</li>
          <li class="active"><a href="###">Home</a></li>
          <li><a href="###">Profile</a></li>
          <li class="disabled"><a href="###">Messages</a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-primary nav-stacked">
          <li class="nav-heading">这是标题</li>
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-secondary nav-stacked">
          <li class="nav-heading">THIS IS HEADINGS</li>
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
        <ul class="nav nav-stacked nav-pills">
          <li class="nav-heading">THIS IS HEADINGS</li>
          <li class="active"><a href="###"><i class="icon-home"></i> Home <i class="icon-heart pull-right"></i></a></li>
          <li><a href="###"><i class="icon-user"></i> Profile <span class="label label-badge label-success pull-right">4</span></a></li>
          <li><a href="###"><i class="icon-comment"></i> Messages <span class="label label-dot label-danger"></span></a></li>
          <li>
            <a class="dropdown-toggle" data-toggle="dropdown" href="###">
              Dropdown <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="">Lorem ipsum.</a></li>
              <li><a href="">Optio, fuga.</a></li>
              <li><a href="">Dicta, vero.</a></li>
              <li><a href="">Doloribus, obcaecati.</a></li>
            </ul>
          </li>
        </ul>
      </div>
    </section>
  </article>
</body>
</html>
